file = open('write.txt', mode='w', encoding='utf-8')
file.writelines(['hello\n', 'world'])
file.close()
